package com.zy.demo048084.service;

import com.zy.demo048084.pojo.po.DepartPo;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.RequestMapping;

import java.util.List;

@Component
@RequestMapping(value = "/fallback/depart")
public class Demo2ServiceFallback implements Demo2Service{

    @Override
    public boolean save(DepartPo po) {
        System.out.println("执行 save() 服务降级");
        return false;
    }

    @Override
    public boolean delete(Long id) {
        System.out.println("执行 delete() 服务降级");
        return false;
    }

    @Override
    public boolean modify(DepartPo po) {
        System.out.println("执行 modify() 服务降级");
        return false;
    }

    @Override
    public DepartPo getById(Long id) {
        System.out.println("执行 getById() 服务降级");
        return null;
    }

    @Override
    public List<DepartPo> getAll() {
        System.out.println("执行 getAll() 服务降级");
        return null;
    }
}
